#ifndef DRAWGRAPH_H
#define DRAWGRAPH_H

#include <QChart>
#include <QChartView>
#include <QTimer>
#include <QWidget>
#include <resulttable.h>
#include <ui_setmrtsconfig.h>
namespace Ui {
class DrawGraph;
}

class DrawGraph : public QWidget
{
    Q_OBJECT

public:
    explicit DrawGraph(QWidget *parent = nullptr);
    ~DrawGraph();

    void draw();
    void closeEvent(QCloseEvent *event);
private slots:
    void on_showTable_clicked();

private:
    Ui::DrawGraph *ui;
    Ui::setmrtsConfig *setmrtsConfigUi;
    QTimer *timer;
    QtCharts::QChart *chart;
    QtCharts::QChartView *chartView;
    ResultTable *resultTable;
};

#endif // DRAWGRAPH_H
